package cn.com.xxlibrary.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import cn.com.xxlibrary.dao.IBorrowDao;
import cn.com.xxlibrary.orm.ManagerInfoBean;
import cn.com.xxlibrary.service.IBorrowService;
import cn.com.xxlibrary.util.UtilTools;

@Service
@Repository("borrowService")
public class BorrowServiceImpl implements IBorrowService {
	
	@Resource
	private IBorrowDao borrowDao;
	
	public List selManager(){
		return borrowDao.selManager();
	}
	
	public void borrowBook(int bid,int uid){
		borrowDao.borrowBook(bid, uid);
	}
	
	public Map bookOnLoan(int bid,int start,int pageSize,String wd){
		return borrowDao.bookOnLoan(bid, start, pageSize, wd);
	}
	
	public void returnBook(int bid){
		borrowDao.returnBook(bid);
	}
	
	public Map showMe(ManagerInfoBean manager){
		return borrowDao.showMe(manager);
	}
	
	public Map myBorrow(int start, int pageSize, ManagerInfoBean manager){
		return borrowDao.myBorrow(start, pageSize, manager);
	}
	
}
